home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
bbs_util
/
wthrv119.zip
/
WTHR-ACE.MOD
< prev
next >
Wrap
Text File
|
1994-04-16
|
4KB
|
119 lines
┌────────────────────────────────────────────────────────────────────────────┐
│ Mod Name: WTHR-ACE.MOD Mod Author: Ace Man @7426 │
│ Difficulty: From 1 to 10, this is a 1. Date: 04-03-94 │
│ WWIV Version: 4.23, but should work with all. │
│ Description: This mod allows users to view updated WEATHER stats upon │
│ logon. SEE NOTE! │
└────────────────────────────────────────────────────────────────────────────┘
--------------------------------- WEATHER.MOD -------------------------------
This Mod is for use with those of you that use the WEATHER program put
out by those at Moobasi Optics Ink. What is does is allow you, and your
users, to view the WEATHER stats upon logon. I use it on my BBS and it works
perfectly. Enjoy!
-----------------------------------------------------------------------------
Open up LILO.C and search for this chunk of file <I have it around line 305
but yours may be different>.
useron=1;
write_inst(INST_LOC_LOGON,0,INST_FLAGS_ONLINE);
if (live_user) {
reset_colors();
ansic(0);
outchr(12);
OK, right above that 'useron=1;' bit... at these few lines.
clrscrb();
npr("1Would you like to view the Ace's BBS Weather Reports? ");
if (yn()) {
weather_menu();
}
-------------------------Close LILO.C and Open MISCCMD.C ----------------
OK.. at the very bottom of Misccmd.C add this:
/******************/
/* Wthr-Ace.Mod */
/******************/
void weather_menu(void)
{
char ch;
clrscrb();
npr("8┌────────────────────────────────┐"); nl();
npr("8│ 71.1 Daily Forecast 8│"); nl();
npr("8│ 72.1 Extented Forecast 8│"); nl();
npr("8│ 73.1 Severe Weather Warnings 8│"); nl();
npr("8│ 74.1 Zone Forecast 8│"); nl();
npr("8│ 75.1 Recreational Weather Report 8│"); nl();
npr("8│ 76.1 Marine Weather Report 8│"); nl();
npr("8│ 7Q.1 Quit Weather Reports 8│"); nl();
npr("8└────────────────────────────────┘"); nl();
npr("1Enter Your Selection:7 ");
ch=onek("Q123456");
switch(ch) {
case 'Q':
break;
case '1':
printfile("WT-CLT.LFP"); /* <--- Change to Match the Filenames
pausescr(); you have! (DAILY WEATHER!) */
weather_menu();
break;
case '2':
printfile("WT-CLT.EFP"); /* Ditto... for EXTENDED WEATHER! */
pausescr();
weather_menu();
break;
case '3':
printfile("WT-CLT.SVR"); /* Ditto again... SEVER WEATHER! */
pausescr();
weather_menu();
break;
case '4':
printfile("WT-CLT.ZFP"); /* Ya know it... ZONE WEATHER */
pausescr();
weather_menu();
break;
case '5':
printfile("WT-CLT.REC"); /* Uh huh... RECREATIONAL WEATHER */
pausescr();
weather_menu();
break;
case '6':
printfile("WT-CLT.MAR"); /* Ahh... MARINE WEATHER! */
pausescr();
weather_menu();
break;
}
}
------------------------ CLOSE MISCCMD.C ------------------------------------
Now type MAKE and recompile. Enjoy!
One more note: If you did not choose the option in your WEATHER program
make it get all 6 weather files. The just comment out
the sections you don't need and don't forget to
change the Menu and also to change the
"ch=onek("Q123456");" bit to reflect how many choices
you have.
This mod was brought to you by Ace Man of Ace's BBS 704-568-5028.
WWIVNet - @7426, ICEnet - @7426, TARDISnet - @7426, ACnet - @7426
Enjoy!